package com.keshihao.springcloud.controller;

import com.keshihao.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Mr.Keshihao
 * @Date 2020/9/5 11:46
 * @Version 1.0
 */
@RestController
public class SendMessageController {

    @Autowired
    private IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage() {

        return messageProvider.send();

    }

}
